#ifndef VECTOR_H
#define VECTOR_H
class Vector{
public:
	bool operator==(const Vector& v)const;
	bool operator!=(const Vector& v)const;
	const Vector& operator+=(const Vector& v);
	Vector operator+(const Vector& v)const;
	const Vector operator+=(int d);
	Vector operator+( int d) const;


	Vector(int first_index = 1, int number = 0);
	Vector(const Vector& v);
	int first() {return i1;}
	int last() {return i1+num-1;};
	int length() {return num;};
	int read(int index);
	void change(int index, int value);
private:
	int *p;
	const int i1;
	int num;
};
#endif